package com.itheima.string;

public class DemoEquals {
    public static void main(String[] args) {
        String s1 = "abc";
        String s2 = "ABC";
        String s3 = new String("abc");
        //eaquls:比较字符串内容,区分大小写
        System.out.println(s1.equals(s2));//false
        System.out.println(s1.equals(s3));//true
        //equalsIgnoreCase:比较字符串内容,不区分大小写
        System.out.println(s1.equalsIgnoreCase(s2));//true
    }
}
